package com.baor.controller;


import com.baor.service.OrderService;
import com.baor.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/order")
public class OrderController {
    @Autowired
    private OrderService orderService;
    //TODO 持有者订单
    @RequestMapping("/getHolerList")
    public R getHolerList(@RequestBody Map<String, Object>  params){
        R r = this.orderService.getHolerList(params);
        return R.ok(r);
    }
    //TODO 代理商订单
    @RequestMapping("/getAgentList")
    public R getAgentList(@RequestBody Map<String, Object>  params){
        R r = this.orderService.getAgentList(params);
        return R.ok(r);
    }

}
